<template>
    <div>
        <van-nav-bar title="购物车" left-text="返回" left-arrow @click-left="onClickLeft" />
        <div>
            <van-swipe-cell>
            <van-card  price="2.00" desc="描述信息" title="商品标题" class="goods-card" 
                thumb="https://fastly.jsdelivr.net/npm/@vant/assets/cat.jpeg">
            </van-card>
            
            <template #right>
                <van-button style="height: 100%;" square text="删除" type="danger" class="delete-button" @click="sc"/>
            </template>
        </van-swipe-cell>
        <van-stepper style="margin-left: 270px;margin-top: -50px;" v-model="value" theme="round" button-size="22" disable-input />
        </div>
        <van-submit-bar :price="3050" button-text="提交订单" @submit="onSubmit" @click="tj"/>

    </div>
</template>

<script setup>
import {useRouter} from 'vue-router'
const router=new useRouter()
const sc=()=>{
    router.push('/gwc1')
}
const tj=()=>{
    router.push('/dd')
}
const onClickLeft=()=>{
    router.push('/')
}
</script>

<style lang="scss" scoped></style>